<% define_content :link do %>
  <%= course_assignment_submission_url(asset.assignment.context, asset.assignment, asset.user_id) %>
<% end %>

<% define_content :subject do %>
  <%= t('user_submitted', 'Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
<% end %>

<%= t('user_submitted_sentence', '%{user_name} has just turned in a submission for %{assignment_name} in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>

<%= before_label('view_submission', 'You can view the submission here') %>
<%= content :link %>
